package ch05;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    private static ApplicationContext applicationContext ;
    static {
        applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml") ;

    }

    public  void test1(){
        applicationContext.getBean("hello") ;
    }

    public static void main(String[] args) {
        Test1 test = new Test1() ;
       // test.test1(); ;
    }
}
